package com.example.demo

import com.example.demo.intercept.UserInfoIntercept
import com.example.demo.pojo.Stu
import com.example.demo.service.BookInfService
import com.example.demo.service.impl.BookInfServiceImpl
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.HandlerInterceptor

@Configuration
class SpringBootConfig {

    @Bean
    fun getStu(): Stu {
        return Stu("hjw", 18)
    }

//    @Bean
//    fun getBookInfService(): BookInfService {
//        return BookInfServiceImpl()
//    }


    @Bean
    fun getLogger(): Logger {
        return LoggerFactory.getLogger("logger")
    }
}